The commands that are currently available in Axodraw are (in alphabetic
order):
-
\ArrowArc(x,y)(r,φ1,φ2)
Draws an arc segment centered around (x,y). The radius is r. The
arc-segment runs counterclockwise from φ1 to φ2. All
angles are given in degrees. In the middle of the segment there will
be an arrow.
-
\ArrowArcn(x,y)(radius,φ1,φ2)
Draws an arc segment centered around (x,y). The radius is r. The
arc-segment runs clockwise from φ1 to φ2. All
angles are given in degrees. In the middle of the segment there will
be an arrow.
-
\ArrowLine(x1,y1)(x2,y2)
Draws a line from (x1,y1) to (x2,y2). There will be an
arrow in the middle of the line.
-
\BBox(x1,y1)(x2,y2)
Draws a box of which the contents are blanked out. This means that
anything that was present at the position of the box will be
overwritten. The lower left corner of the box is at (x1,y1) and
(x2,y2) is the upper right corner of the box.
-
\BBoxc(x,y)(width,height)
Draws a box of which the contents are blanked out. This means that
anything that was present at the position of the box will be
overwritten. The center of the box is at (x,y). Width and height refer
to the full width and the full height of the box.
-
\BCirc(x,y){r}
Draws a circle of which the contents are blanked out. This means that
anything that was present at the position of the circle will be
overwritten. The center of the circle is at (x,y). r is its radius.
-
\Boxc(x,y)(width,height)
Draws a box. The center of the box is at (x,y). Width and height refer
to the full width and the full height of the box.
-
\BText(x,y){text}
Draws a box with one line of centered postscript text in it. The box is
just big enough to fit around the text. The coordinates refer to the
center of the box. The box is like a BBox in that it blanks out
whatever was at the position of the box.
-
\B2Text(x,y){text1}{text2}
Draws a box with two lines of centered postscript text in it. The box is
just big enough to fit around the text. The coordinates refer to the
center of the box. The box is like a BBox in that it blanks out
whatever was at the position of the box.
-
\CArc(x,y)(radius,φ1,φ2)
Draws an arc segment centered around (x,y). The radius is r. The
arc-segment runs counterclockwise from φ1 to φ2. All
angles are given in degrees.
-
\Curve{
(x1, y1)(x2, y2) ... (xn, yn)}
Draws a curve through the given points. The x-values are supposed to
be in ascending order. The curve is a combination of quadratic and
third order segments and is continuous in its first and second derivatives.
-
\DashArrowArc(x,y)(r,φ1,φ2){dashsize}
Draws a dashed arc segment centered around (x,y). The radius is r. The
arc-segment runs counterclockwise from φ1 to φ2. All
angles are given in degrees. In the middle of the segment there will
be an arrow. The size of the dashes is approximately equal to
`dashsize'.
-
\DashArrowArcn(x,y)(radius,φ1,φ2){dashsize}
Draws a dashed arc segment centered around (x,y). The radius is r. The
arc-segment runs clockwise from φ1 to φ2. All
angles are given in degrees. In the middle of the segment there will
be an arrow. The size of the dashes is approximately equal to
`dashsize'.
-
\DashArrowLine(x1,y1)(x2,y2){dashsize}
Draws a line from (x1,y1) to (x2,y2) with a dashed
pattern. The size of the black parts of the pattern is given by
`dashsize'. The alternating pieces have equal length. The size of
the pattern is adjusted so that both the begin and the end are
black. Halfway the line there is an arrow.
-
\DashCArc(x,y)(radius,φ1,φ2){dashsize}
Draws a dashed arc segment centered around (x,y). The radius is r. The
arc-segment runs counterclockwise from φ1 to φ2. All
angles are given in degrees. The size of the dashes is determined by
`dashsize'. This size is adjusted somewhat to make the result look
nice.
-
\DashCurve{
(x1, y1)(x2, y2) ... (xn, yn)}{
dashsize}
Draws a dashed curve through the given points. The x-values are
supposed to be in ascending order. The curve is a combination of
quadratic and third order segments. The size of the black parts and
the white parts will be approximately `dashsize' each. Some
adjustment takes place to make the pattern come out right at the
endpoints.
-
\DashLine(x1,y1)(x2,y2){dashsize}
Draws a line from (x1,y1) to (x2,y2) with a dashed
pattern. The size of the black parts of the pattern is given by
`dashsize'. The alternating pieces have equal length. The size of
the pattern is adjusted so that both the begin and the end are
black.
-
\EBox(x1,y1)(x2,y2)
Draws a box. The lower left corner of the box is at (x1,y1) and
(x2,y2) is the upper right corner of the box.
-
\GBox(x1,y1)(x2,y2){grayscale}
Draws a box. The lower left corner of the box is at (x1,y1) and
(x2,y2) is the upper right corner of the box. The contents of
the box are lost. They are overwritten with a color gray that is
indicated by the parameter `grayscale'. This parameter can have
values ranging from 0 (black) to 1 (white).
-
\GBoxc(x,y)(width,height){grayscale}
Draws a box. The center of the box is at (x,y). Width and height refer
to the full width and the full height of the box. The contents of
the box are lost. They are overwritten with a color gray that is
indicated by the parameter `grayscale'. This parameter can have
values ranging from 0 (black) to 1 (white).
-
\GCirc(x,y){radius}{grayscale}
Draws a circle around (x,y) with radius r. The contents of
the circle are lost. They are overwritten with a color gray that is
indicated by the parameter `grayscale'. This parameter can have
values ranging from 0 (black) to 1 (white).
-
\GlueArc(x,y)(r,φ1,φ2){amplitude}{windings}
Draws a gluon on an arc-segment. The center of the arc is (x,y) and r
is its radius. The arc segment runs counterclockwise from φ1
to φ2. The width of the gluon is twice `amplitude', and the
number of windings is given by the last parameter. Note that whether
the curls are inside or outside can be influenced with the sign of
the amplitude. When it is positive the curls are on the inside.
-
\Gluon(x1,y1)(x2,y2){amplitude}{windings}
Draws a gluon from (x1,y1) to (x2,y2). The width of the
gluon will be twice the value of `amplitude'. The number of windings
is given by the last parameter. If this parameter is not an integer
it will be rounded to an integer value. The side at which the
windings lie is determined by the order of the two coordinates. Also
a negative amplitude can change this side.
-
\GOval(x,y)(h,w)(φ){grayscale} Draws an oval with
an internal color indicated by grayscale. This parameter can have
values ranging from 0 (black) to 1 (white). The center of the oval
is given by (x,y). Its height is h, and the width is w. In addition
the oval can be rotated counterclockwise over φ degrees. The
oval overwrites anything that used to be in its position.
-
\GText(x,y){grayscale}{text}
Draws a gray box with one line of centered postscript text in it. The
box is just big enough to fit around the text. The coordinates refer to
the center of the box. The box is like a BBox in that it blanks out
whatever was at the position of the box.
-
\G2Text(x,y){grayscale}{text1}{text2}
Draws a gray box with two lines of centered postscript text in it.
The box is just big enough to fit around the text. The coordinates
refer to the center of the box. The box is like a BBox in that it
blanks out whatever was at the position of the box.
-
\LinAxis(x1,y1)(x2,y2)(ND,d,hashsize
,offset,width)
This draws a line to be used as an axis in a graph. Along the axis
are hash marks. Going from the first coordinate to the second, the
hash marks are on the left side if `hashsize', which is the size of the
hash marks, is positive and on the right side if it is negative.
ND is the number of `decades', indicated by fat hash marks, and
d is the number of subdivisions inside each decade. The offset
parameter tells to which subdivision the first coordinate
corresponds. When it is zero, this coordinate corresponds to a fat
mark of a decade. Because axes have their own width, this is
indicated with the last parameter.
-
\Line(x1,y1)(x2,y2)
Draws a line from (x1,y1) to (x2,y2).
-
\LogAxis(x1,y1)(x2,y2)(NL,hashsize
,offset,width)
This draws a line to be used as an axis in a graph. Along the axis
are hash marks. Going from the first coordinate to the second, the
hash marks are on the left side if `hashsize', which is the size of the
hash marks, is positive and on the right side if it is negative.
NL is the number of orders of magnitude, indicated by fat
hash marks. The offset parameter tells to which integer subdivision
the first coordinate corresponds. When it is zero, this coordinate
corresponds to a fat mark, which is identical to when the value
would have been 1. Because axes have their own width, this is
indicated with the last parameter.
-
\LongArrow(x1,y1)(x2,y2)
Draws a line from (x1,y1) to (x2,y2). There will be an
arrow at the end of the line.
-
\LongArrowArc(x,y)(r,φ1,φ2)
Draws an arc segment centered around (x,y). The radius is r. The
arc-segment runs counterclockwise from φ1 to φ2. All
angles are given in degrees. At the end of the segment there will
be an arrow.
-
\LongArrowArcn(x,y)(radius,φ1,φ2)
Draws an arc segment centered around (x,y). The radius is r. The
arc-segment runs clockwise from φ1 to φ2. All
angles are given in degrees. At the end of the segment there will
be an arrow.
-
\Oval(x,y)(h,w)(φ) Draws an oval.
The center of the oval
is given by (x,y). Its height is h, and the width is w. In addition
the oval can be rotated counterclockwise over φ degrees. The
oval does not overwrite its contents.
-
\Photon(x1,y1)(x2,y2){amplitude}{wiggles}
Draws a photon from (x1,y1) to (x2,y2). The width of the
photon will be twice the value of `amplitude'. The number of wiggles
is given by the last parameter. If twice this parameter is not an integer
it will be rounded to an integer value. Whether the first wiggle
starts up or down can be influenced with the sign of the amplitude.
-
\PhotonArc(x,y)(r,φ1,φ2){amplitude}{wiggles}
Draws a photon on an arc-segment. The center of the arc is (x,y) and r
is its radius. The arc segment runs counterclockwise from φ1
to φ2. The width of the photon is twice `amplitude', and the
number of wiggles is given by the last parameter. Note that
the sign of the amplitude influences whether the photon starts going
outside (positive) or starts going inside (negative). If one likes
the photon to reach both endpoints from the outside the number of
wiggles should be an integer plus 0.5.
-
\PText(x,y)(φ)[mode]{text}
Places a postscript text. The focal point is (x,y). The text is the last
parameter. The mode parameter tells how the text should be
positioned with respect to the focal point. If this parameter is
omitted the center of the text will correspond to the focal point.
Other options are: l for having the left side correspond to the
focal point, r for having the right side correspond to it, t for
having the top at the focal point and b for the bottom. One may
combine two letters as in [bl], as long as it makes sense. The
parameter φ is a rotation angle. The text is written in the
current postscript font. This font can be set with the SetPFont
command.
-
\rText(x,y)[mode][rotation]{text}
Places a rotated text. The focal point is (x,y). The text is the last
parameter. If the rotation parameter is the character l the text
will be rotated left by 90 degrees, if it is an r it will be rotated
to the right by 90 degrees and when it is the character u the text
will be rotated by 180 degrees. When there is no character there is
no rotation and the command is identical to the Text command.
The mode parameter tells how the resulting box should be
positioned with respect to the focal point. If this parameter is
omitted the center of the box will correspond to the focal point.
Other options are: l for having the left side correspond to the
focal point, r for having the right side correspond to it, t for
having the top at the focal point and b for the bottom. One may
combine two letters as in [bl], as long as it makes sense.
-
\SetPFont{fontname}{fontsize}
Sets the postscript font to a given type and scale.
-
\SetScale{scalevalue}
Changes the scale of all graphics operations. Unfortunately it does
not change the scale of the text operations (yet?). A `scalevalue' of
1 is the default. It is allowed to use floating point values.
-
\SetOffset(x_offset,y_offset)
Adds the offset values to all coordinates at the TEX level. This
makes it easier to move figures around.
-
\SetScaledOffset(x_offset,y_offset)
Adds the offset values to all coordinates at the postscript level.
This is done after scaling has been applied. Hence one can work with
the scaled coordinates. This can be very handy when drawing curves.
-
\SetWidth{widthvalue}
Changes the linewidth in all graphics operations. It does
not change the linewidth of the text operations. That is a matter of
font selection. A `widthvalue' of
0.5 is the default. It is allowed to use floating point values.
-
\Text(x,y)[mode]{text}
Places a text. The focal point is (x,y). The text is the last
parameter. The mode parameter tells how the text should be
positioned with respect to the focal point. If this parameter is
omitted the center of the text will correspond to the focal point.
Other options are: l for having the left side correspond to the
focal point, r for having the right side correspond to it, t for
having the top at the focal point and b for the bottom. One may
combine two letters as in [bl], as long as it makes sense.
-
\Vertex(x,y){r}
Draws a fat dot at (x,y). The radius of the dot is given by r.
-
\ZigZag(x1,y1)(x2,y2){amplitude}{wiggles}
Draws a zigzag line from (x1,y1) to (x2,y2). The width of the
zigzagging will be twice the value of `amplitude'. The number of zigzags
is given by the last parameter. If twice this parameter is not an integer
it will be rounded to an integer value. Whether the first zigzag
starts up or down can be influenced with the sign of the amplitude.